package com.mifengkong.cygtools.model;

import com.mifengkong.cygtools.constant.ServletAddressConstant;
import com.mifengkong.cygtools.jjcard.EncryptInterceptor;

import java.util.List;

import okhttp3.Interceptor;

/**
 * Created by jiangyongxing on 2018/1/31.
 * 描述：除了网银的其他极简信用卡BaseModel，
 */

public class BaseJJCardModel extends BaseModel {

    @Override
    protected void initInterceptor(List<Interceptor> interceptors) {
        interceptors.add(new EncryptInterceptor(getSecretKey()));

    }

    @Override
    protected String getDoMainType() {
        return ServletAddressConstant.JI_JIAN_CREDIT;
    }

    @Override
    protected String[] loginUrl() {
        return new String[]{"", "", "user/phoneLogin"};
    }
}
